#ifndef __svg
#define __svg

#include "util.h"
#include <windows.h>


typedef struct _svgSize{
double  width;
double  height;
double  x;
double  y;
int u;
} svgSize;

BEGIN_DECAL_C
DHS_API int renderSvgToPng(const char *svgpath, const char *destpath);

DHS_API int renderSvgByData(const  guint8 *data, unsigned int data_len, HDC hdc, int cx, int cy, int width, int height);

DHS_API int getSvgSize(const guint8 *svgp,  gsize data_len,svgSize *out_svgSize);

END_DECAL_C

#endif
